﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfPrgTrab.aspx.cs" Inherits="trabajo_wfPrgTrab" %>
<%@ Register Src="../wuc/wuc_Header.ascx" TagName="wuc_Header" TagPrefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Programación de Trabajos</title>
    <link rel="stylesheet" href="../styles/a-main/a-main.css" type="text/css" />

    <script language="javascript" src="../include/popcalendar.js"></script>
    <script language="javascript" src="../include/fecha.js"></script>
    <script language="javascript" src="../include/toolkit.js"></script>
    
    <script language="javascript">
    <!--
    function ValidarTATTEM() {      
      var isValid = false;
      var stringDecimal = document.getElementById('txtHraETA').value;
      
      if(document.getElementById('txtHraETA').value.length > 0) {
        if(stringDecimal.indexOf(":")==-1) {
            alert("El formato de Hora ETA debe ser HH:MM");
            isValid = false;
        }
        else {
            isValid = true;
        }
      }
      
      stringDecimal = document.getElementById('txtHraETD').value;
      if(isValid) {
          if(document.getElementById('txtHraETD').value.length > 0) {
            if(stringDecimal.indexOf(":")==-1) {
                alert("El formato de Hora ETD debe ser HH:MM");
                isValid = false;
            }
            else
                isValid = true;
          }
      }
      return isValid;
    }
      
    if(window.history.forward(1) != null)
      window.history.forward(1);    
      
    function popUpSelPerson(ctrl,ctrl2,PerCargo)
    {
    var url = "../persona/wfAddPerson.aspx?ctrl="+ctrl2+"&ccar="+PerCargo;
    window.open(url,"per","width=980,height=720,status=yes");
    }
    
    function popUpOpenTrab(ctrl,ctrl2,PerCargo)
    {
    var miForm = document.form1;
    //alert(miForm.hid_IdInfTra.value);
    if(miForm.hid_IdInfTra.value.length >0)
    {    
    var url = "./wfPrgTrabDet.aspx?ctrl="+ctrl2+"&wv="+miForm.hid_IdInfTra.value;
    window.open(url,"trab","width=800,height=480,status=yes");
    }
    else
    {
    alert('No ha registrado el trabajo');
    }
    }
    
    function popUpOpenSelTrab(idTrab, seqTrab)
    {        
    var url = "./wfRegTrab.aspx?wv="+idTrab+"&sq="+seqTrab;
    window.open(url,"trab","width=1000,height=1000,status=yes");    
    }
    
    function PopUpReport() {
    alert("popup");
        var URL = "../Reportes/wfViewerPopUpSinFiltro.aspx?";
        URL += "par=" + document.getElementById("txtFecPrg").value;
        URL += "&val=" + document.getElementById("ddl_ProdLin").value;
        //URL += "&rep=" + "rsRptInfDiarioV2";
        URL += "&rep=" + "rsRptProgV2";
        window.open(URL,"_report","width=1000px,height=800px,toolbar=no,resizable=1;");
    }
    -->    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <uc1:wuc_Header ID="Wuc_Header1" runat="server" />            
            <div id="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">                
                    <tr>
                        <td style="width: 15%; background-color: #f6f6f6;" rowspan="1" valign="top">
                            <table width="100%">
                                <tr>
                                    <td>
                                        <table width="100%" cellspacing="2" cellpadding="0">
                                            <tr>
                                                <td class="CptWFMain">
                                                    Accesos Directos</td>
                                            </tr>
                                            <tr>
                                                <td class="Menu">
                                                    <asp:Label ID="lblMenu" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 3px">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="width: 11px">
                        </td>
                        <td>
                        

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
  <TD><IMG height=12 src="../styles/a-main/top_left.png" width=13></TD>
  <TD width=12 background="../styles/a-main/line_top.png" height=10></TD>
  <TD><IMG height=12 src="../styles/a-main/top_right.png" width=13></TD>
</TR>
<TR>
  <TD width=11 background="../styles/a-main/left.png" height=3></TD>
  <TD bgColor=#FFFFFF>
  <!-- TITULO DE LA PANTALLA -->
  <span class="sTit">MODULO DE PROGRAMACION</span>
  <!-- FIN TITULO DE LA PANTALLA -->
  </TD>
  <TD width=13 background="../styles/a-main/right.png" height=3></TD>
</TR>
<TR>
  <TD width=11 background="../styles/a-main/left.png" height=3></TD>
  <TD bgColor=#FFFFFF>
  <!-- TABLA DOS DE FONDO COLOR -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_topleft.gif" width=13></TD>
  <TD width=3 background="../styles/a-main/lightblueBorder_top.gif" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_topright.gif" width=13></TD>
</TR>
<TR>
  <TD width=13 background="../styles/a-main/lightblueBorder_left.gif" height=3></TD>
  <TD bgColor=#ebeffa>
  <!-- TABLA FILTROS DEL CLIENTE -->

<div id="dvFiltro1">                            
                            <table width="100%">
                                <tr>
                                    <td>
                            <img src="../styles/a-main/Bullet485.gif" border="0" /></td>
                                    <td>
									
                            <span class="sTit">DATOS DE LA PROGRAMACION</span>
							
							
							</td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    <table width="780" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td style="width: 35px">
                                    </td>
                                    <td style="width: 117px">
                                    </td>
                                    <td style="width: 143px">
                                    </td>
                                    <td style="width: 200px">
                                    </td>
                                    <td style="width: 93px">
                                            <span class="lblCaption">Estado del P/T:</span></td>
                                    <td style="width: 144px">
                                        <asp:Label ID="lblEstPrg" runat="server" CssClass="et_InfAbi"></asp:Label></td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 35px">
                                        <span class="lblCaption">Área:</span></td>
                                    <td style="width: 117px">
                                        <asp:DropDownList ID="ddl_ProdLin" runat="server" CssClass="sel">
                                        </asp:DropDownList></td>
                                    <td style="width: 143px">
                                        <span class="lblCaption">Fecha de 
                                            <br />
                                            Programación:</span></td>
                                    <td style="width: 200px">
                                        <asp:TextBox ID="txtFecPrg" onblur="valFecha(this)" runat="server" CssClass="inTextData"
                                            EnableViewState="False" contentEditable="false" Width="85px"></asp:TextBox>
                                        <img src="../styles/cssmain/calendar.gif" border="0" onClick="popUpCalendar(this, txtFecPrg, 'dd/mm/yyyy')"
                                            id="imgFecInfo" />
                                        <asp:RequiredFieldValidator ID="rfv_fecInf" runat="server" ControlToValidate="txtFecPrg"
                                            ErrorMessage="Fecha no debe estar vacia" ValidationGroup="a">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="gev_FechInv" runat="server" ControlToValidate="txtFecPrg"
                                            ErrorMessage="Fecha de programación inválida" ValidationExpression="(\d{1,2})/(\d{1,2})/(\d{2,4})"
                                            ValidationGroup="a">*</asp:RegularExpressionValidator></td>
                                    <td style="width: 93px">
                                        <span class="lblCaption">Aeronave: CC-</span></td>
                                    <td style="width: 144px">
                                        <asp:TextBox ID="txtMatAvi" runat="server" CssClass="inTextData toUpper" MaxLength="3" Width="55px"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="rfv_MatAvi" runat="server" ControlToValidate="txtMatAvi" ErrorMessage="Matricula No debe estar vacia"
                                            ValidationGroup="a">*</asp:RequiredFieldValidator></td>
                                    <td>
                                        <asp:ImageButton ID="imgConsultaPrg" runat="server" ImageUrl="../styles/a-main/BTbuscar.gif"
                                            OnClick="imgConsultaPrg_Click" ValidationGroup="a" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 35px">
                                    </td>
                                    <td style="width: 117px">
                                    </td>
                                    <td style="width: 143px">
                                    </td>
                                    <td style="width: 200px">
                                    </td>
                                    <td style="width: 93px">
                                    </td>
                                    <td style="width: 144px">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="7">
                                        &nbsp;
                                        </td>
                                </tr>
                            </table>
                            <table width="780" border="0" style="border-collapse: collapse;" cellpadding="2"
                                    cellspacing="2">
                                    <tr>
                                        <td style="width: 151px;">
                                            <span class="lblCaption">Fecha del Vuelo:</span></td>
                                        <td style="width: 145px; ">
                                            <asp:TextBox ID="txtFecVuelo" ContentEditable="false" onblur="valFecha(this)" runat="server" CssClass="inTextData"
                                                MaxLength="10" Width="95px"></asp:TextBox><img src="../styles/cssmain/calendar.gif"
                                                    border="0" onClick="popUpCalendar(this, txtFecVuelo, 'dd/mm/yyyy')" id="imgFecVuelo" /><asp:RequiredFieldValidator
                                                        ID="rfv_FecVuelo" runat="server" ControlToValidate="txtFecVuelo" ErrorMessage="La Fecha de vuelo no debe estar vacia"
                                                        ValidationGroup="b">*</asp:RequiredFieldValidator></td>
                                        <td rowspan="3" style="width: 31px">
                                            <asp:ImageButton ID="btnDatosPizarra"
                                                    runat="server" ImageUrl="../styles/a-main/look.gif" ToolTip="Verificar Datos de Pizarra"
                                                    OnClick="btnDatosPizarra_Click" ValidationGroup="b" Enabled="False" /></td>
                                        <td colspan="4" rowspan="3">
                                            <div id="divDatosVuelo" runat="server">
                                                <table width="450" border="0" cellpadding="3" cellspacing="2" style="border-collapse: collapse;">
                                                    <tr>
                                                        <td class="tit_texto1">Horarios del vuelo</td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div id="divDatPizETA" runat="server" class="lblCaption">
                                                                <span class="lblCaption">Hora de Llegada (ETA): &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;</span>
                                                                <asp:Label ID="lblHraETA" runat="server">dd/mm/aaaa - 00:00 (24hrs)</asp:Label>
                                                        </div>
                                                            <div id="divDatManETA" style="display: none;" runat="server">
                                                                <span class="lblCaption">Fecha y Hora de Llegada (Manual) : &nbsp; </span>
                                                                <asp:TextBox ID="txtFecETA" ContentEditable="false" runat="server" CssClass="inTextData" Enabled="False"
                                                                    onblur="valFecha(this)" MaxLength="10" Width="95px"></asp:TextBox><img
                                                                        src="../styles/cssmain/calendar.gif" border="0" onClick="popUpCalendar(this, txtFecETA, 'dd/mm/yyyy')"
                                                                        id="imgFecETA" style="font-size: 9pt" />
                                                                <asp:TextBox ID="txtHraETA" onKeyPress="return ValidaKeyHora(event);" runat="server" CssClass="inTextData" Enabled="False" MaxLength="5" Width="50px"></asp:TextBox>&nbsp;
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div id="divDatPizETD" runat="server" class="lblCaption">
                                                                <span class="lblCaption">Hora de Salida (ETD): &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span>
                                                                <asp:Label ID="lblHraETD" runat="server">dd/mm/aaaa - 00:00 (24hrs)</asp:Label>                                                             
                                                        </div>
                                                            <div id="divDatManETD" style="display: none;" runat="server">
                                                                <span class="lblCaption">Fecha y Hora de Salida (Manual): &nbsp;&nbsp;&nbsp; &nbsp;</span>
                                                                <asp:TextBox ID="txtFecETD" runat="server" ContentEditable="false" CssClass="inTextData" Enabled="False" onblur="valFecha(this)" MaxLength="10" Width="95px"></asp:TextBox><img src="../styles/cssmain/calendar.gif"
                                                                        border="0" onClick="popUpCalendar(this, txtFecETD, 'dd/mm/yyyy')" id="imgFecETD" style="font-size: 9pt; font-family: Arial" />
                                                                <asp:TextBox ID="txtHraETD" onKeyPress="return ValidaKeyHora(event);" runat="server" CssClass="inTextData" Enabled="False" MaxLength="5" Width="50px"></asp:TextBox>&nbsp;
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <asp:HiddenField ID="hid_HabIngManual" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 151px">
                                            <span class="lblCaption">Vuelo de Llegada (ETA)</span></td>
                                        <td style="width: 145px">
                                            <asp:TextBox ID="txtETA" runat="server" CssClass="inTextData toUpper"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfv_NumETA" runat="server" ControlToValidate="txtETA"
                                                ErrorMessage="El Número ETA no debe estar vacio" ValidationGroup="b">*</asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 151px">
                                            <span class="lblCaption">Vuelo de Salida (ETD)</span></td>
                                        <td style="width: 145px">
                                            <asp:TextBox ID="txtETD" runat="server" CssClass="inTextData toUpper"></asp:TextBox><asp:RequiredFieldValidator
                                                ID="rfv_NumETD" runat="server" ControlToValidate="txtETD" ErrorMessage="El número ETD no debe estar vacio"
                                                ValidationGroup="b">*</asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 151px;">
                                        </td>
                                        <td style="width: 145px;">
                                        </td>
                                        <td style="width: 31px;">
                                        </td>
                                        <td style="width: 328px;">
                                            <asp:CheckBox ID="chkTransMantto" runat="server" Text="Transportar a Mantto" CssClass="lblCaption" />&nbsp;
                                            <asp:ImageButton ID="imgCalcularTATTEM" runat="server" ImageUrl="../styles/a-main/BTCalcularTATTEM_Dis.gif"
                                                OnClick="imgCalcularTATTEM_Click" Enabled="False" OnClientClick="return ValidarTATTEM();" /></td>
                                        <td>
                                            &nbsp;<asp:Label ID="lblTATTEM" runat="server" CssClass="lblCaption"></asp:Label></td>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7">
                                            <div id="divMotivCambio" runat="server" style="display: none;">
                                                <table border="0" width="100%" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" >
                                                    <tr>
                                                        <td>
                                                            <span class="lblCaption">Justificacion de Cambio:</span></td>
                                                        <td>
                                                            <asp:TextBox ID="txtJustifCambio" runat="server" Columns="100" CssClass="inTextData"
                                                                Rows="4" TextMode="MultiLine"></asp:TextBox></td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="7" style="text-align: left">
                                            &nbsp;<asp:ImageButton ID="imgRegInforme" runat="server" ImageUrl="../styles/a-main/BTgrabar.gif"
                                                ToolTip="Guardar Programación" OnClick="imgRegInforme_Click" />
                                            &nbsp; &nbsp;&nbsp;
                                            <!-- a href="../general/wfindex.aspx"><img border="0" src="../styles/a-main/btn_IrMenuPrincipal.png" /></a -->
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                            &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                                            <asp:ImageButton ID="imgEditInforme" runat="server" ImageUrl="../styles/a-main/BTModificar.gif"
                                                ToolTip="Activar para modificar la programación" OnClick="imgEditInforme_Click" /></td>
                                    </tr>
                                <tr>
                                    <td align="center" colspan="7" style="text-align: left">&nbsp;
                                        </td>
                                </tr>
                                </table>
                            
                                    </td>
                                </tr>
                            </table>
                            </div>
                            
                            
	<div id="divFiltro2">
                            <table width="100%">
                                <tr>
                                    <td width="1%">
                            <img src="../styles/a-main/Bullet485.gif" border="0" /></td>
                                    <td>
                            <span class="sTit">TRABAJOS PROGRAMADOS</span></td>
                                </tr>
                                <tr>
                                    <td width="1%">
                                    </td>
                                    <td align="center">
                                            &nbsp;</td>
                                </tr>
                                <tr>
                                    <td width="1%"></td>
                                    <td>
                                    <div id="divTrabPrg" style="Display:none;" runat="server">
                        
                                            <table border="0" cellpadding="0" cellspacing="0" width="780">
                                                <tr>
                                                    <td colspan="7" valign="top" style="width: 98%">
                                                        <asp:GridView ID="gvTrab" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical"
                                                            Width="100%" DataKeyNames="Id,SecuenciaTrabajo"
                                                            OnRowDeleting="gvTrab_RowDeleting" OnRowDataBound="gvTrab_RowDataBound">
                                                            <Columns>
                                                                <asp:BoundField DataField="Id" HeaderText="ID" Visible="False" />
                                                                <asp:BoundField DataField="SecuenciaTrabajo" HeaderText="SECUENCIA" Visible="False" />
                                                                <asp:BoundField HeaderText="Tipo Trabajo" />
                                                                <asp:BoundField HeaderText="Componente" />
                                                                <asp:BoundField HeaderText="TipoTrabajo" Visible="False" />
                                                                <asp:BoundField HeaderText="Horas Hombre" />
                                                                <asp:BoundField DataField="TEstimComponente" HeaderText="HHComp" Visible="False" />
                                                                <asp:BoundField DataField="TEstimTipoTrab" HeaderText="HHTipTra" Visible="False" />
                                                                <asp:CommandField ShowDeleteButton="True" />
                                                            </Columns>
                                                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                            <RowStyle CssClass="RowGrid" />
                                                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                            <HeaderStyle Font-Bold="True" ForeColor="White" CssClass="titGrid" />
                                                            <AlternatingRowStyle BackColor="Gainsboro" />
                                                        </asp:GridView>
                                            </td>
                                                    <td colspan="1" valign="top" style="width: 2%" align="right">
                                                        <asp:ImageButton ID="imgReCargar" runat="server" ImageUrl="../styles/a-main/bot_trabajo_dis.gif"
                                                            OnClientClick="javascript:popUpOpenTrab(this, 'txtEncar', '40'); return false;" ToolTip="Registrar Trabajos"
                                                            Enabled="False" Width="24px" />
                                                        <br />
                            <asp:ImageButton ID="imgRefresh" runat="server" ImageUrl="../styles/a-main/bot_reload_dis.gif"
                                                            ToolTip="Refrescar Grid" OnClick="imgRefresh_Click" Enabled="False" Width="24px" />&nbsp;</td>
                                                </tr>
                                            </table>
                        </div>
                                        &nbsp;</td>
                                </tr>
                            </table>
                            </div>
                                                          
                              <div id="filtros3">
                            <table width="100%">
                                <tr>
                                    <td width="1%">
                            <img src="../styles/a-main/Bullet485.gif" border="0" /></td>
                                    <td>
                            <span class="sTit">PERSONAL PROGRAMADO</span></td>
                                </tr>
                                <tr>
                                    <td width="1%">
                                    </td>
                                    <td>&nbsp;
                                        </td>
                                </tr>
                                <tr>
                                    <td width="1%">
                                    </td>
                                    <td>
                                    <div id="divPersPrg" style="display:none;" runat="server">
                        <table width="780">
                        <tr>
                        <td>
                        <span class="lblCaption">Mecanico:</span>
                        </td>
                        <td>
                                                <asp:TextBox ID="txtParticipante" runat="server" CssClass="inTextData" Width="350px"></asp:TextBox>
                                                <img id="Img2" border="0" onClick="popUpSelPerson(this, 'txtParticipante', '40')"
                                                    src="../styles/cssmain/Personas.gif" /></td>
                        <td rowspan="2">
                            <asp:ImageButton ID="imgAdicionarPers" runat="server" ImageUrl="../styles/a-main/BTagregar.gif" OnClick="imgAdicionarPers_Click" /></td>
                        <td>&nbsp;
                            </td>
                        </tr>
                            <tr>
                                <td>
                                    <span class="lblCaption">
                                                Participación:</span></td>
                                <td>
                                                <asp:DropDownList ID="ddlParticipacion" runat="server" CssClass="sel" Width="350px">
                                                </asp:DropDownList></td>
                                <td>&nbsp;
                                    </td>
                            </tr>
                        <tr>
                        <td colspan="4">
                        <table border="0" cellpadding="0" cellspacing="0" width="780">
                                                <tr>
                                                    <td align="left" colspan="7">&nbsp;
                                                        </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" valign="top">
                                                        <asp:GridView ID="gvParticipantes" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical"
                                                            Width="100%" OnRowDataBound="gvParticipantes_RowDataBound" OnRowCommand="gvParticipantes_RowCommand">
                                                            <Columns>
                                                                <asp:BoundField DataField="IdTrabajador" HeaderText="Trabajador" Visible="False" />
                                                                <asp:BoundField DataField="IdTrabajo" HeaderText="IdTrabajo" Visible="False" />
                                                                <asp:BoundField DataField="SecuenciaTrabajo" HeaderText="SecuenciaTrabajo" Visible="False" />
                                                                <asp:TemplateField HeaderText="Trabajador">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("NombreTrabajador") %>'></asp:Label>
                                                                        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"IdTrabajador") + "|" + DataBinder.Eval(Container.DataItem,"IdTrabajo") %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="IdTipoApoyo" HeaderText="Tipo Participacion" />
                                                                <asp:ButtonField CommandName="Eliminar" Text="Eliminar" />
                                                            </Columns>
                                                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                            <RowStyle CssClass="RowGrid" />
                                                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                            <HeaderStyle Font-Bold="True" ForeColor="White" CssClass="titGrid" />
                                                            <AlternatingRowStyle BackColor="Gainsboro" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                        </td>
                        </tr>
                        </table>
                        </div>
                                        &nbsp;</td>
                                </tr>
                            </table>
                            </div>
                            <asp:ImageButton ID="imgHabilitarPrg" runat="server" ImageUrl="../styles/a-main/BTCerrarProgramacion.gif"
                                                ToolTip="Habilitar Programación" OnClick="imgHabilitarPrg_Click" />
                            <asp:ImageButton ID="imgEliminarPrg" runat="server" ImageUrl="../styles/a-main/BTEliminar.gif"
                                OnClick="imgEliminarPrg_Click" />
  <!-- FIN TABLA FILTROS DEL CLIENTE -->
  </TD>
  <TD width=13 background="../styles/a-main/lightblueBorder_right.gif" height=3></TD>
</TR>
<TR>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_bottomleft.gif" width=13></TD>
  <TD width=3 background="../styles/a-main/lightblueBorder_bottom.gif" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_bottomright.gif" width=13></TD>
</TR>
</TBODY>						
</TABLE>

  <!-- FIN TABLA DOS DE FONDO COLOR -->
  </TD>
  <TD width=13 background="../styles/a-main/right.png" height=3></TD>
</TR>
<TR>
  <TD><IMG height=12 src="../styles/a-main/bottom_left.png" width=13></TD>
  <TD width=3 background="../styles/a-main/line_bottom.png" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/bottom_right.png" width=13></TD>
</TR>
</TBODY>						
</TABLE>

                        </td>
                    </tr>
                    </table>
            </div>

        <asp:HiddenField ID="hidEstRegistro" runat="server" />
        <asp:HiddenField ID="hid_TEM" runat="server" />
        <asp:HiddenField ID="hid_IdInfTra" runat="server" />
        <asp:HiddenField ID="hid_PTNP" runat="server" />
    </form>
</body>
</html>
